for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
// UnsupportedCharsetException.js
"use strict";
// :: DEPENDENCIES
// load native dependencies
const path = require("path");
// load local dependencies
const IllegalArgumentException = require(path.join(__dirname, "IllegalArgumentException.js"));
// :: BASIC SETUP
/**
* Unchecked exception thrown when a string that is not a legal charset name is used as such.
* @param {String} message - The message describing the <tt>UnsupportedCharsetException</tt>.
* @param {Number} code - The unique code that identifies the cause of the <tt>UnsupportedCharsetException</tt>.
* @augments IllegalArgumentException
* @constructor
* @see https://docs.oracle.com/javase/8/docs/api/java/nio/charset/UnsupportedCharsetException.html
*/
const UnsupportedCharsetException = function (message, code) {
IllegalArgumentException.call(this, message, code);
};
// :: INHERITANCE
// set the IllegalArgumentException 'class' as the parent in the prototype chain
UnsupportedCharsetException.prototype = Object.create(IllegalArgumentException.prototype);
UnsupportedCharsetException.prototype.constructor = IllegalArgumentException;
// :: PROTOTYPE
* The name used to identify a <tt>UnsupportedCharsetException</tt>.
* @type {String}
* @default
UnsupportedCharsetException.prototype.name = "UnsupportedCharsetException";
// :: EXPORT
// export the UnsupportedCharsetException 'class'
module.exports = UnsupportedCharsetException;